import 'package:flustars_flutter3/flustars_flutter3.dart';
import 'package:flutter/material.dart';
import 'package:ls_work/a_yyt/models/elder_time_line_entity.dart';
import 'package:ls_work/res/colors.dart';
import 'package:ls_work/res/styles.dart';

class ClientTimeCell extends StatelessWidget {
  final int? count;
  final TimeLinesInfo? info;
  ClientTimeCell({Key? key, this.count, this.info});
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.fromLTRB(15, 10, 15, 0),
      width: ScreenUtil.getScreenW(context),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.start,
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          Column(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: <Widget>[
              Container(
                width: 10,
                height: 10,
                decoration: BoxDecoration(
                    shape: BoxShape.circle, color: Colours.text_gray),
              ),
              SizedBox(
                height: 10,
              ),
              Container(
                      color: Colours.app_main,
                      width: 1,
                      height: 60,
                    ),
            ],
          ),
          SizedBox(
            width: 20,
          ),
          Expanded(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.spaceAround,
              crossAxisAlignment: CrossAxisAlignment.start,
              children: <Widget>[
                Text(
                  '${info?.operateContentName ?? ''}',
                  style: TextStyles.textGray16,
                ),
                Text(
                  '${info?.createdByName ?? ''}',
                  style: TextStyles.textBoldDark18,
                ),
                Text(
                  '${info?.createdDate ?? ''}',
                  style: TextStyles.textGray16,
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
